From 52755be8981ca782763d1eca503e4bce752ea76e Mon Sep 17 00:00:00 2001 From: "sos22@labyrinth.cl.cam.ac.uk" Date: Tue, 8 Jul 2003 14:13:58 +0000 Subject: [PATCH] bitkeeper revision 1.303 (3f0ad1a61FnuXVGdcIqVKvhMgep_6w) Get rid of the max_aces stuff -- the size of the outgoing buffer is fixed anyway, so there's very little point. --- xen/drivers/block/xen_physdisk.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/xen/drivers/block/xen_physdisk.c b/xen/drivers/block/xen_physdisk.c index cef06ea2a8..e7e0bf73b4 100644 --- a/xen/drivers/block/xen_physdisk.c +++ b/xen/drivers/block/xen_physdisk.c @@ -149,13 +149,11 @@ static int xen_physdisk_grant_access(unsigned short dev, static void xen_physdisk_probe_access(physdisk_probebuf_t * buf, struct task_struct *p) { - int max_aces; int n_aces; struct list_head *cur_ace_head; struct physdisk_ace *cur_ace; int x = 0; - max_aces = buf->n_aces; n_aces = 0; list_for_each(cur_ace_head, &p->physdisk_aces) { x++; @@ -167,8 +165,6 @@ static void xen_physdisk_probe_access(physdisk_probebuf_t * buf, buf->entries[n_aces].n_sectors = cur_ace->n_sectors; buf->entries[n_aces].mode = cur_ace->mode; n_aces++; - if (n_aces >= max_aces) - break; } } buf->n_aces = n_aces; -- 2.30.2